admin: Initialize sysroot to / by default, not garbage from the stack
authorColin Walters <walters@verbum.org>
Thu, 11 Jul 2013 21:29:04 +0000 (17:29 -0400)
committerColin Walters <walters@verbum.org>
Thu, 11 Jul 2013 21:29:04 +0000 (17:29 -0400)
Oops.

src/ostree/ot-builtin-admin.c

index bc9c85044d31fdfc18e3b150aeaac6072202f473..813a66b33bd570013dd8dfab06037c8665b70b4d 100644 (file)
@@ -52,7 +52,7 @@ ostree_builtin_admin (int argc, char **argv, GFile *repo_path, GError **error)
 {
   gboolean ret = FALSE;
   __attribute__((unused)) GCancellable *cancellable = NULL;
-  const char *opt_sysroot;
+  const char *opt_sysroot = "/";
   const char *subcommand_name;
   OstreeAdminCommand *subcommand;
   int subcmd_argc;